package Test1;

public class Employee implements Cloneable {
	
	public Employee clone() throws CloneNotSupportedException {
		Employee cloned = (Employee) super.clone();
		return cloned;
	}
//	  public Object clone() {
//		    Object o = null;
//		    try {
//		      o = super.clone();
//		    } catch (CloneNotSupportedException e) {}
//		    return o;
//		  }
	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Employee(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
}
